package com.company.person;

import com.company.transport.Transport;

/**
 * @description:
 * @author: 86133
 * @date: Created in 2020/5/18 21:16
 * @version: ${VERSION}
 * @modified By:
 */
public class Person {
    private String id;
    private String name;

    public Person() {
    }
    public void driveVehicle(Transport transport) {
        System.out.print(this.name + "\t");
        transport.drivingMethod();
    }

    public Person(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}